package cn.yunhe.service.impl;

import cn.yunhe.mapper.UserInfoPMapper;
import cn.yunhe.pojo.UserInfoP;
import cn.yunhe.service.UserInfoPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userInfoP")
public class UserInfoPServiceImpl implements UserInfoPService {

    @Autowired
    private UserInfoPMapper userInfoPMapper;

    @Override
    public List<UserInfoP> selectByUserInfo() {


        return userInfoPMapper.selectByExample(null);
    }

    @Override
    public UserInfoP findUserInfoById(String id) {

        return userInfoPMapper.selectByPrimaryKey(id);
    }
}
